﻿using Autofac;
using IServices;
using Serives;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Y2.Utility
{
    [Obsolete]
    public class AutofacModule:Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            // 在这里添加服务注册
            builder.RegisterType<Teusers>().As<Iusers>();
            builder.RegisterType<Tetype>().As<Itype>();
            builder.RegisterType<Teconfig_file_first_kind>().As<Iconfig_file_first_kind>();
            builder.RegisterType<Teconfig_file_second_kind>().As<Iconfig_file_second_kind>();
            builder.RegisterType<Teconfig_file_third_kind>().As<Iconfig_file_third_kind>();
            builder.RegisterType<Teconfig_major>().As<Iconfig_major>();
            builder.RegisterType<Teconfig_major_kind>().As<Iconfig_major_kind>();
            builder.RegisterType<Teconfig_public_char>().As<Iconfig_public_char>();
            builder.RegisterType<Teengage_major_release>().As<Iengage_major_release>();
            builder.RegisterType<Teengage_resume>().As<Iengage_resume>();
            builder.RegisterType<Teengage_interview>().As<Iengage_interview>();
            builder.RegisterType<TeRole>().As<IRole>();
            builder.RegisterType<Teehuman_file>().As<Ihuman_file>();
            builder.RegisterType<Tesalary_standard>().As<Isalary_standard>();
            builder.RegisterType<Temajor_change>().As<Imajor_change>();
            builder.RegisterType<Tesalary_grant>().As<Isalary_grant>();
        }
    }
}
